﻿using System;
using System.Collections.Generic;
using System.Text;
using MapCenterSystem.DataInfo;
using MapCenterSystem.DefineType;
using MapCenterSystem.DataAccess;

namespace MapCenterSytem.Process
{
    public class Street
    {
        public static IList<HomeInfo> FindAddress(String keyword)
        {
            StreetServices streetService = new StreetServices();
            return streetService.FindAddress(keyword);
        }

        public static List<StreetInfo> GetListStreet(List<NodeInfo> lstNode)
        {
            StreetServices streetService = new StreetServices();
            return streetService.GetListStreet(lstNode);
        }

        public static HomeInfo GetAddress(NodeInfo node)
        {
            StreetServices streetService = new StreetServices();
            return streetService.GetAddress(node);
        }
        public static IList<StreetTraffic> GetStreetTrafficInArea(Coordinate start, Coordinate end)
        {
            StreetServices streetService = new StreetServices();
            return streetService.GetStreetTrafficInArea(start, end);
        }
    }
}
